home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / programming / assemblers / cas.lha / orig / nl.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-11  |  283 b   |  9 lines

  1. #include <stdio.h>
  2. main(int AC, char **AV) {
  3.    FILE *FP; int Ch;
  4.    if (AC < 2) fprintf(stderr, "Usage: %s Input\n", AV[0]), exit(1);
  5.    FP = fopen(AV[1], "rb");
  6.    if (FP == 0) fprintf(stderr, "Cannot open %s.\n", AV[1]), exit(1);
  7.    while ((Ch = fgetc(FP)) != EOF) putchar(Ch);
  8. }
  9.